package com.sunyard.dal.bo.role;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @author jiy.fang
 * @ClassName RoleAddBO
 * @Description description
 * @date 2019/7/24 20:24
 */
@ApiModel
@Data
public class RoleAddBO implements Serializable {

    private static final long serialVersionUID = -6794466359747313823L;

    @ApiModelProperty(value = "角色ID", required = true)
    private String roleId;

    @ApiModelProperty(value = "角色名称")
    @Size(max = 64, message = "角色名称不超过64位")
    private String roleName;

    @ApiModelProperty(value = "角色备注")
    @Size(max = 256, message = "备注不超过256位")
    private String roleRemark;

    @ApiModelProperty(value = "指定审核人", required = true)
    @NotBlank(message = "审核类型不能为空")
    private String auditor;

    @ApiModelProperty(value = "角色分配的权限列表")
    private List<String> popedomList;

    @ApiModelProperty(value = "审核类型")
    @NotBlank(message = "审核类型不能为空")
    private String auditType;

    private String auditId;

    @ApiModelProperty(value = "角色对应颜色")
    @Size(max = 32, message = "角色对应颜色不超过32位")
    private String color;

}
